﻿// -------------------------------------------------------------------------
//    @FileName         :    NFTransSaveRole.h
//    @Author           :    Gao.Yi
//    @Date             :    2025-08-18
//    @Email			:    445267987@qq.com
//    @Module           :    NFTransSaveRole
//    @Desc             :    
//
// -------------------------------------------------------------------------

#pragma once

#include "proto_common_base.nanopb.h"
#include "NFLogicCommon/NFLogicShmTypeDefines.h"
#include "NFServerComm/NFServerCommon/NFCacheDataSaveTrans.h"

class NFPlayer;
class NFTransSaveRole : public NF_OBJECT_TEMPLATE_MACRO(NFTransSaveRole, EOT_TRANS_LOGIC_SAVE_ROLE, NFCacheDataSaveTrans)
public:
    NFTransSaveRole();
    ~NFTransSaveRole() override;
    int CreateInit();
    int ResumeInit();
public:
    int SaveDb(NFPlayer* pPlayer, int iReason = TRANS_SAVEROLEDETAIL_NORMAL);
};